home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / gfx / show / gs_src_gs.lha / gs5.03 / pdf2ps < prev    next >
Text File  |  1996-03-22  |  339b  |  20 lines

  1. #!/bin/sh
  2. # Convert PDF to PostScript.
  3.  
  4. OPTIONS=""
  5. while true
  6. do
  7.     case "$1" in
  8.     -*) OPTIONS="$OPTIONS $1" ;;
  9.     *)  break ;;
  10.     esac
  11.     shift
  12. done
  13.  
  14. if [ $# -ne 2 ]; then
  15.     echo "Usage: `basename $0` [-dPSBinaryOK] [-dPSLevel1] [-dPSNoProcSet] input.pdf output.ps" 1>&2
  16.     exit 1
  17. fi
  18.  
  19. exec gs -q -dNODISPLAY -sPSFile=$2 -dNOPAUSE $OPTIONS $1 -c quit
  20.